package com.xique.park.controller.web;

import com.xique.common.core.web.domain.AjaxResult;
import com.xique.common.security.annotation.PreAuthorize;
import com.xique.park.bean.request.web.subDev.ParkSubDevListRequest;
import com.xique.park.service.biz.service.IParkSubDevBizService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 车场附加设备controller
 *
 * @author xique
 */
@RestController
@RequestMapping("/web/subDev")
public class WebParkSubDevController {

    @Autowired
    private IParkSubDevBizService parkSubDevBizService;

    /**
     * 查询附加设备列表
     */
    @PostMapping("/list")
    @PreAuthorize(hasPermi = "park:subDev:list")
    public AjaxResult parkSubDevList(@Validated @RequestBody ParkSubDevListRequest request) {
        return parkSubDevBizService.getParkSubDevList(request);
    }

}
